package com.dongdongshop.front.mongdb;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

@Document(collection = "comment")
public class Comments implements Serializable{

    private static final long serialVersionUID = -6485201211391147804L;
    @Id
    private Long _id;
    private String cname;
    private String userId;
    private Integer stsrs;
    private String title;
    private Long itemId;
    private Long goodId;
    private String orderItemtitle;
    private String spec;
    private Date dateTime;
    private Integer like;

    public Long get_id() {
        return _id;
    }

    public void set_id(Long _id) {
        this._id = _id;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getStsrs() {
        return stsrs;
    }

    public void setStsrs(Integer stsrs) {
        this.stsrs = stsrs;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public Long getGoodId() {
        return goodId;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    public String getOrderItemtitle() {
        return orderItemtitle;
    }

    public void setOrderItemtitle(String orderItemtitle) {
        this.orderItemtitle = orderItemtitle;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public Integer getLike() {
        return like;
    }

    public void setLike(Integer like) {
        this.like = like;
    }
}
